<?php
	echo form_open('c_challenge/confirm_invitation') . PHP_EOL;
	
	echo validation_errors();
		
	echo "<p>CONFIRM CHALLENGE INVITATION" . "</p>" . PHP_EOL;
	
	echo $confirm_error;
    
	echo $pending_challenge_table . PHP_EOL;

?>

<p>
	<?php 
		if ($pending_invitation_exists) 
		{
			$config = array(	'name'		=> 'submit_confirmation',
								'value'		=> 'Submit confirmation',
								'onclick'	=> 'return confirm(\'Are you sure about your confirmation?\')'
							);
			echo form_submit($config);
		}
	?>
</p>

</form>